# ifndef __Inet_H_
# define __Inet_H_

class CInet {
	CInet (const CInet &);
	void operator = (const CInet &);

  public:
	CInet (HINTERNET _h) : m_h (_h) {}
	~CInet () {::InternetCloseHandle (m_h);}

	operator HINTERNET () const {return m_h;}
	bool operator ! () const {return m_h == NULL;}

  private:
	HINTERNET m_h;
};

bool IsInetOffline (const char * _strURL);

# endif // __Inet_H_